package cn.usian.service.impl;

import cn.usian.dao.OrderMapper;
import cn.usian.pojo.Order;
import cn.usian.service.OrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


@Service
@Transactional
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderMapper orderMapper;

    @Override
    public List<Order> findAll() {
        return orderMapper.selectList(null);
    }
}
